home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
18
/
quickq.zip
/
QQ.DOC
< prev
next >
Wrap
Text File
|
1990-03-14
|
14KB
|
346 lines
QuickQ Documentation
V. 1.00 M. Frankel March 1990
-----------------------------
This archive contains the following files and statistics. If the numbers
you receive from running the enclosed batch file CHECK.BAT do not match
those listed below, please DELETE ALL FILES which came from the archive
QUICKQ.ZIP and contact the author at CHICAGO VOICE BBS (See below for
telephone number).
QUICKQ.ZIP - Size 31,789
Date 3-14-90
QQ.EXE - Size 20,973
Date 3-14-90
Check Method 1 - C2D1
Check Method 2 - 01B4
VALIDATE.COM - Size 6,485
Date 10-31-89
Check Method 1 - CB21
Check Method 2 - 13B7
VALIDATE.DOC - Size 1,653
Date 10-28-90
QQ.DOC - Size 13,972
Date 3-14-90
READ.ME - Size 1,871
Date 3-14-90
CHECK.BAT - Size 994
Date 3-14-90
CV.ZIP - Size 7,562
Date 1-28-90
Check Method 1 - 5B2C
Check Method 2 - 183F
QQMAC.ZIP - Size 1,596
Date 03-14-90
Check Method 1 - 76D1
Check Method 2 - 012D
What is QuickQ ?
----------------
QuickQ (QQ) was initially designed to be used with Applied Systems
Technologies, Inc.'s QEDIT editor. QQ itself is shareware, and is
designed to be used with the registered or "shareware" versions of QEDIT
'The quick editor' from SemWare.
QuickQ was developed to for two reasons:
1. Save and restore the screen when calling QEDIT. The shareware
versions since 2.0 have not restored the screen after exiting
qedit and returning to PC or MS DOS.
2. When QQ is involked without a file or list of files, it will load
the files which were last edited. I find this feature sorely
lacking in Qedit since it would be so easy to implement. This
feature is widely used with other editors like BRIEF.
Intended audience for QuickQ
----------------------------
Programmers who do not use integrated environments, who like Qedit, and
are involved in long term projects. I use C and assembler at work and
found Brief too slow (it isn't really an editor, it's a macro processer
engine). But I really like brief's ability to re-load multiple files and
the cursor positions without having to re-enter the paths/names. I dis-like
having to resort to franticly searching for a dos command in a dos-like editor.
QuickQ Usage
------------
QQ [?] [file1] [file2] [file3] ...
Where:
? = will show the environment variables used and examples.
Environment variables used:
QQ - holds the path AND filename of the QEDIT program (or the
name of a batch file which calls qedit. I use norton
guides so my Q.BAT file looks like ( I copy it to my ram
drive and place the ram drive in my path):
ng qedit.exe %1 %2 %3 %4 %5 %6 %7 > nul
Examples:
SET QQ=D:\QEDIT.EXE (to call the qedit directly)
SET QQ=D:\Q.BAT (to call the qeditor from a batch
file which calls qedit).
QTMP - holds the path AND filename of the temporary file to
create to store the file name(s) which will be passed to
qedit. Like the QQ variable, i reccommend using a ram
drive for this:
Example:
SET QTMP=D:\$QQ$
SET QTMP=C:\TEMP\anything.tmp
Explanation of Files
--------------------
QQ.EXE - QuickQ. The shell program from which qedit will be called.
QuickQ saves the screen and filename(s) passed to a temporary
file prior to calling qedit with the parameters. When QQ.EXE is
entered on the DOS prompt without parameters, it will attempt
to open the temporary file (if it exists! ) and re-call qedit
with the filenames you last entered.
I first wrote this program with the intention to call QEDIT
with the same files since last edit. Un-like "other" editors,
QQ can not re-position the cursor at the last edited position
in the file(s). Maybe I'll do that later, or someone else could
try it. Please upload the modified source to the Chicago Voice
BBS listed below.
I first used the macro facility of QEDIT (INIT.MAC) to do this, but
it was just geting very sloppy, and eventually wouldn't provide the
screen save feature. I included it for those with a flair for QEDIT
macro language.
The source code is free and pulic domain. To obtain it call CHICAGO
VOICE BBS Oak Park, IL (708) 982-0126. 1200/300 8N1. It is contained
in the file QQSRC.ZIP. Note: Since Chicago Voice is a voice system,
you will have to wait 30 seconds for a 1200 carrier tone AFTER
the first voice prompt (about 40 seconds total).
QQ.DOC - This file.
VALIDATE.COM - Validation Program provides File size, date, time and checksum
figures for anti-viral protection.
VALIDATE.DOC - Documentation for VALIDATE.COM
READ.ME - Ad for Chicago Voice BBS.
CHECK.BAT - The bath file which when run will provide you with the means to
check the files in this archive for tampering or vandalism.
QQMAC.ZIP - Zip file containing INIT.MAC,INIT.TXT, INIT2.MAC, INIT2.TXT
INIT.MAC, INIT.TXT - INIT will save the name of the file to
INIT2.MAC,INIT2.TXT at load time, INIT2 will load the file
saved by INIT.
The binary and source file to load and execute
as an autostart macro. Both the init and init2
macros must be called from the command line
with the -e option of QEDIT 2.1. I would call
QEDIT from a batch file which i named Q.BAT,
after renaming Q.EXE to QEDIT.EXE.
Heres how the batch file would look like when
I was using the macro files:
@echo off
if exist C:\Q\$QTEMP$.LST goto l2
if "%1" == "" goto l1
qedit %1 %2 %3 -einit.mac
goto l3
:l1
qedit
goto l3
:l2
qedit -ed:\init2.mac nul
:l3
f10 MacroBegin Splitline MarkColumn Currentfilename MarkColumn \
goto_block_beg EditFile 'c:\q\$Qtemp$.lst' return MoveBlock \
SaveFile quit delch file
Whew ! See why I decided to write a program
to do this ?
Helpful Hints:
You can use qq right out of "the box", so long as you:
1. Rename your Q.EXE to QEDIT.EXE
or
set QQ=Q.EXE
2. You have a hard drive as C: (if not, set QTMP=X
where X is a drive you know which will always exist.
3. Be sure that the directory which the qeditor is located
in in your PATH.
Here's how i use QuickQ with qedit:
Step 1. I re-name QQ.EXE (QuickQ) to Q.EXE
Step 2. Rename Q.EXE (Qedit) to QEDIT.EXE. Let's assume the
directory where qedit is located is in your path.
Step 3. Create a batch file called Q.BAT which is located in the
C:\Q directory and looks like this (Note: the '@' will
supress the echo off command, but only will work with
DOS 3.3 or greater):
@echo off
ng qedit %1 %2 %3 %4 %5 %6 %7 %8 %9 %10 %11 %12 >nul
(I use norton guides to invoke Qeditor, you can do
whatever you want in the batch file.)
Step 4. Add the following lines to your autoexec.bat file. set
QTMP to D:\$Q$ (if D: is your ram drive designator)
set QQ = C:\Q\Q.BAT
Step 5. Re-boot.
Error/Warning Messages from QuickQ
----------------------------------
( Note: All error/warning messages will be written to STDERR )
QQ Oops: Error in Load Module. Please delete QuickQ.
-This is a self-check of QuickQ. Re-extract the QQ.EXE from the
archive. (Exit code 1)
QQ Oops : Cannot execute parameter lines longer than 128 characters.
The command line:
<command_line>
is <integer> characters long.
-This is informing you that your command line is greater than 128
characters long. (Exit code 2)
QQ Oops: Error opening file drive:<path>/<filename>
-This error message is diplayed when quickq can't open either the
temporary path/filename which you specified in the QTMP variable, or
can't open the default temporary file, which is 'C:\$QQ$.TMP'.
(Exit code 3)
QQ Oops : Error writing file <QuickQ_temporary_file_spec>
-This is telling you that QuickQ could not open the temporary file
for writing. It will be most likely to happen if you specified a
drive which doesn't exist, or you don't have a C: drive.
(Exit code 4)
QQ Oops : Error closing file <QuickQ_temporary_file_spec>
-This is telling you that QuickQ could not close the temporary file.
It will be most likely to happen if you run out of drive space or
flag the temporary file 'hidden' or 'read-only'.
(Exit code 5)
QQ Oops : Error reading from file <QuickQ_temporary_file_spec>
-This is telling you that QuickQ could not write to the temporary
file. It will be most likely to happen if you run out of
drive space or flag the temporary file 'read-only'.
( Exit code 6 )
QQ Oops : Error closing file <QuickQ_temporary_file_spec>
-This is telling you that QuickQ could not close the temporary file.
It will be most likely to happen if you run out of drive space.
( Exit code 7)
QQ Oops: Error running command line:
<command_line>
Try checking:
-COMSPEC to verify that programs can locate COMMAND.COM
-Your command line is not longer that 128 characters.
-This error message is diplayed when quickq can't run the command line
which calls qedit or can't locate the COMMAND.COM file. Also, if you
really can't enter a command longer than 128 characters into the DOS
command line, but you can from a batch file. (Exit code 8)
(Exit code 8)
QQ Message : File drive:<path>/<filename> does not exist. Give QQ a filename
next time.
-This isn't really an error message. QuickQ is informing you that it
can't find the temorary file, and that you haven't specified a file
name to edit. QuickQ will call QEDIT with a blank filename so you can
choose which file you want to edit.
Trouble-Shooting
----------------
Q. I've done what you said, but when I enter Q nothing happens except
the following message is displayed:
░▒▓ QuickQ v1.0 March 1990 M. Frankel
A. Either Q.EXE cannot find the file QEDIT.EXE or your environment
variable QQ does not exist. Perform your usual trouble shooting steps
(ie; be sure the Qedit program is in a directory which is in your
path; you've not run out of environment space, etc.)
If this fails:
1. Be sure the QQ variable is set to a good filename. try typing
what you set QQ to in your autoexec.bat file and see if the
qeditor runs.
2. If you will not be using the QQ variable, BE SURE THAT THE
QEDITOR IS RE-NAMED TO QEDIT.EXE !
You should now type Q and get Qedit, along with saving your last
edited file and initial screen. If you don't call Chicago voice for
further assistance.
Q. I used to be able to edit files of 10,000 lines, but since I've been
using QuickQ, I'm only able to load files of around 9,000 lines.
A. There's a trade-off with using QuickQ (As with anything in life!). If
you are usually editing huge files, use another editor. If 99% of the
time you are editing program files of 5,000 lines or less, use QuickQ !
Q. How do I get the Source Code for QuickQ ?
A. Call Chicago Voice BBS at (708) 982-0126. 1200/8/N/1. After
registration you will be able to d/l QQSRC.ZIP. This contains C source
code for QuickQ.
The Disclaimer
--------------
Use of this program acknowledges this disclaimer of warranty: "This
program is supplied as is. I disclaim all warranties, express or
implied, including, without limitation, the warranties of
merchantability and of fitness of this program for any purpose. I
assume no liability for damages direct or consequential, which may
result from the use of this program."
QEDIT is is a registered trademark of Applied Systems Technologies,
Inc., dba Semware.
MS-DOS is a registered trademark of Microsoft Corporation.
PC-DOS is a registered trademark of IBM Corporation.
BRIEF is a registered trademark of UnderWare, Inc.
VALIDATE is from McAfee Associates